package comitheima.a02oopextendsdemo02;

public class Test {
    public static void main(String[] args) {
       Zi zi = new Zi();
       //Zi zi1 = new Zi("zhasa",18);
    }
}

class  Fu{
    String name;
    int age;
    public Fu(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public Fu(){

    }
}
class Zi extends Fu{
   //如果一个类没有构造方法,虚拟机会自动给你添加一个默认的空参的构造方法
}
